package translinkApp.DialogBoxes.GoCard;

import translinkApp.views.dialog.LachDialogData;
import android.os.Parcel;
import android.os.Parcelable;

public class GoCardDetailsDialogData extends LachDialogData {
	private String username;
	private String password;

	public String getUserName() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public static Parcelable.Creator getCreator() {
		return CREATOR;
	}

	public GoCardDetailsDialogData(String username, String password) {
		this.username = username;
		this.password = password;
	}

	// ---- Parcellable object methods

	public GoCardDetailsDialogData(Parcel in) {
		this(in.readString(), in.readString());
	}

	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
		public GoCardDetailsDialogData createFromParcel(Parcel in) {
			return new GoCardDetailsDialogData(in);
		}

		public GoCardDetailsDialogData[] newArray(int size) {
			return new GoCardDetailsDialogData[size];
		}
	};

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeValue(getUserName());
		dest.writeValue(getPassword());
	}

	@Override
	public int describeContents() {

		return 0;
	}
}
